﻿<%@ Page Language="C#" MasterPageFile="~/GUI/SiteMasterPage.Master" AutoEventWireup="true" CodeBehind="Update.aspx.cs" Inherits="wdss.GUI.Update" Title="Update" %>
<asp:Content ID="Content2" ContentPlaceHolderID="content1" runat="server">
<br /><br />
    <table align =center>
	    <tr>
	    <td>
	    <asp:Label ID = welcome_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="Welcome" Font-Size="20px"></asp:Label>
	    </td>
	    <td>
	    <asp:Label ID = username_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="" Font-Size="20px"></asp:Label>
	    </td>
	    <td>
	    <asp:Label ID = sym_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="...!" Font-Size="20px"></asp:Label>
	    </td>
	    </tr></table>
	    <br />
 <form id="UpdateDocument" method="post" enctype="multipart/form-data">
    <div class="heading">
        <table align=center>
	    <tr>
	    <td>
	    <asp:Label ID="Label1" runat="server"  Text="Update Documents" Font-Bold="True" 
        Font-Names="Arial Rounded MT Bold" Font-Size="XX-Large" ForeColor="White"></asp:Label>
	    </td>
	    </tr>
	    </table>
	    <br /><br />
    </div>
    
    <div>
    <table align=center  border =2>
    <tr>
    <td align="left">
    	    <asp:Label ID="OldPasswordlbl" Text="Select Documents" ForeColor="White" 
                runat=server Font-Names="Arial Rounded MT Bold"></asp:Label>
    </td>
        
        <td align="left" style="height: 53px">
                         <asp:DropDownList ID="ddl_ChooseDocument" runat="server" 
                            DataSourceID="wdm_authored_documents_Update" DataTextField="doc_title" 
                            DataValueField="doc_id" ForeColor="Black" Height="25px" Width="273px"> </asp:DropDownList>
                        
                    </td> 
        </tr>
        <tr>
        <td align=left >
	    <asp:Label ID="Label2" Text="Select File " ForeColor="White" 
                runat=server Font-Names="Arial Rounded MT Bold"></asp:Label>
	    </td>
        <td>
        <asp:FileUpload ID="FileUploadPath" runat="server" />
        </td>
        </tr>
        <tr>
            
                <td>
                <asp:Label id="lbl_Success" runat="server" Visible="false" Text="Successfully updated a document." ForeColor="White" 
                Font-Names="Arial Rounded MT Bold"/>
                <asp:Label ID="lbl_Error" runat="server" Visible="false" ForeColor="Red" />
            </td>
            <td colspan = 2 align=right>
                <asp:Button ID="btn_Update" Text="Update" runat=server BackColor="#14263A" 
                BorderStyle="Outset" Font-Names="Arial Rounded MT Bold" ForeColor="White"
                 OnClick="Update_Button_Click" />
            </td>
        </tr>
        
        
        </table>
        <asp:SqlDataSource ID="wdm_authored_documents_Update" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:aspnetdbConnectionString %>" 
                            SelectCommand="sp_GetCheckOutDocument" SelectCommandType="StoredProcedure" 
                             ProviderName="System.Data.SqlClient">
                            <SelectParameters>
                                <asp:SessionParameter DefaultValue="0" Name="par_userid" SessionField="userid" 
                                    Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
    </div>
    </form>
</asp:Content>

